Passed
Push — develop ( 2aedbc...c21af9 )
by Bjarn
01:37
created

PackageManager   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 6
1
abstract class PackageManager {
2
    abstract name: string
3
    abstract path: string
4
    abstract alias: string
5
6
    abstract install(pkg: string, cask: boolean): Promise<boolean>
7
8
    abstract uninstall(pkg: string, cask: boolean): Promise<boolean>
9
10
    abstract remove(pkg: string): Promise<boolean>
11
12
    abstract update(): Promise<boolean>
13
14
    abstract upgrade(pkg: string | undefined): Promise<boolean>
15
16
    abstract packageIsInstalled(pkg: string): Promise<boolean>
17
}
18
19
export default PackageManager